﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Xml;
using TMS.ServiceProvider.CapitalTransportationSolutions;

namespace TMS.ServiceProvider.CapitalTransportationSolutions.ShipRite
{
    public class ShipRiteBase : CTSBase
    {
        private const string REQUEST_URL = @"http)://www.shipwithcts.com/cts/shiprite/rater.cfm?";
        private const string ACCESORIAL_REQUEST_URL = @"http://www.shipwithcts.com/cts/shiprite/srapp.cfm?action=listAccessorials";

        /// <summary>
        /// Request Url for CTS
        /// </summary>
        public static string RatingRequestUrl
        {
            get
            {
                return @"http://www.shipwithcts.com/cts/shiprite/rater.cfm?action=xml&UID=1168&fromzip=33431&tozip=90221&shipdate=2008-12-04&class1=70&weight1=2415&LIFTGATEATPICKUP=1";
            }
        }

        
        public static string AccesorialRequestUrl
        {
            get { return String.Format("{0}&UID={1}", ACCESORIAL_REQUEST_URL, Uid); }
        }
    }

}
